﻿using MgSoft.K3Cloud.WebApi.Common.Dto.Pur;
using MgSoft.K3Cloud.WebApi.Dto;
using MgSoft.Log;
using System;
using System.Collections.Generic;
using System.Text;

namespace MgSoft.K3Cloud.WebApi.Common.Api.Pur
{
    /// <summary>
    /// 收料通知单
    /// </summary>
    public class Pur_ReceiveBillApi : BaseApi, IPur_ReceiveBillApi
    {
        protected override string formId => "PUR_ReceiveBill";
        public Pur_ReceiveBillApi(ApiServerInfo apiServerInfo, IMgLogger logger = null) : base(apiServerInfo, logger)
        {
        }

        public Pur_ReceiveBillApi(string serverUrl, string dbid, string userName, string password, int lcid = 2052) : base(serverUrl, dbid, userName, password, lcid)
        {
        }

        public bool Save(Pur_ReceiveBillSaveInputDto pur_ReceiveBillSaveInputDto)
        {
            base.Save(new SaveInputDto
            {
                FormId = formId,
                Model = pur_ReceiveBillSaveInputDto
            });

            return true;
        }
    }
}
